﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Stadsetjarinn.Models
{
    public class Local_Device_Data 
    {

            [Key]
            public int Device_ID { get; set; }    

            [Display(Name = "Name")]
            public string Device_Name { get; set; }

            public string Description { get; set; }

            public int? Group_ID { get; set; }

            [Display(Name = "Device Type")]
            public string Device_Type { get; set; }
            
            [ForeignKey("Group_ID")]
            public virtual Device_Groups Device_Groups { get; set; }
    }

    //public class Local_DeviceDBContext : DbContext
    //{
    //    public DbSet<Local_Device_Data> Local_Device_Data { get; set; }

    //    public DbSet<Device_Groups> Device_Groups { get; set; }
    //}
}
